package com.zoshine.zzg.service;

import com.zoshine.zzg.dao.PrisonerBasicDao;
import com.zoshine.zzg.pojo.PrisonerBasic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**外网犯人基本信息
 * @author 田沛凌
 * @time 2017/9/7 16:06
 */
@Service
@Transactional
public class PrisonerBasicService extends BaseService<PrisonerBasic>{
    private PrisonerBasicDao prisonerBasicDao;
    @Autowired
    public void setPrisonerBasicDao(PrisonerBasicDao prisonerBasicDao) {
        this.prisonerBasicDao = prisonerBasicDao;
    }

    /**
     * 根据银行卡号获取犯人信息
     * @param bankCard 银行卡号
     * @return 犯人信息
     */
    public PrisonerBasic getPrisonerBasicByBankCard(String bankCard){
        PrisonerBasic prisonerBasic = prisonerBasicDao.selectByBankCard(bankCard);
        return prisonerBasic;
    }
}
